package hb.software.role.entity;

import domain.BaseEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import hb.software.role.category.*;

@Entity
@Table(name = "T_role")

public class Role extends BaseEntity<Long> {
	@ManyToOne
	@JoinColumn(name = "GROUP_ID")
	RoleCategory roleCategory;
	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	@Column
	String username;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column
	String password;

	public RoleCategory getRoleCategory() {
		return roleCategory;
	}

	public void setRoleCategory(RoleCategory roleCategory) {
		this.roleCategory = roleCategory;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	
}
